package com.hongxun.budget.ui.fragment.sg;

import android.widget.TextView;

import com.hongxun.budget.R;
import com.hongxun.budget.ui.fragment.BaseFragment;
import com.hongxun.budget.utils.SgDBUtils;
import com.hongxun.budget.utils.SPUtils;
import com.hongxun.budget.utils.SgStrKey;
import com.hongxun.greenentity.sg.CPolePitEntity;

import butterknife.BindView;

/**
 * 隐蔽工程信息详情：电杆坑
 */
public class BrowsePolePitInfo extends BaseFragment {
    @BindView(R.id.et11)
    TextView et11;
    @BindView(R.id.et12)
    TextView et12;
    @BindView(R.id.et13)
    TextView et13;
    @BindView(R.id.et14)
    TextView et14;
    @BindView(R.id.et15)
    TextView et15;

    public BrowsePolePitInfo() {
    }

    @Override
    public int getLayoutId() {
        return R.layout.sg_fragment_browsepolepitinfo;
    }

    @Override
    public void initView() {
        CPolePitEntity polePitEntity = SgDBUtils.getCPolePit(String.valueOf(SPUtils.get(context, SgStrKey.uuidxx, "")));
        et11.setText(polePitEntity.getPPDesigndepth());
        et12.setText(polePitEntity.getPPActualdepth());
        et13.setText(polePitEntity.getPPSoil());
        et14.setText(polePitEntity.getPPStone());
        et15.setText(polePitEntity.getPPResult());
    }

}
